from fastapi import FastAPI
import uvicorn
from pydantic import BaseModel

class Item(BaseModel):
    content: str
    code: str
    courier: str
    datatime: str


app = FastAPI()

@app.get('/test')
async def test():
    return {"msg":"hello word"}

@app.post('/jd')
async def jd(item: Item):
    print(item)
    return item

if __name__ == "__main__":
    uvicorn.run(app='fastApi:app',host='0.0.0.0',port=8002,reload=True)